package com.lfg.project.model.dto.userInterfaceInfo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.lfg.project.common.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 查询请求
 *
 * @author yupi
 */
@Schema(description = "查询请求")
@EqualsAndHashCode(callSuper = true)
@Data
public class UserInterfaceInfoQueryRequest extends PageRequest implements Serializable {

    /**
     * 主键
     */
    @Schema(description = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 调用用户 id
     */
    @Schema(description = "调用用户 id")
    private Long userId;

    /**
     * 接口 id
     */
    @Schema(description = "接口 id")
    private Long interfaceInfoId;

    /**
     * 总调用次数
     */
    @Schema(description = "总调用次数")
    private Integer totalNum;

    /**
     * 剩余调用次数
     */
    @Schema(description = "剩余调用次数")
    private Integer leftNum;

    /**
     * 0-正常，1-禁用
     */
    @Schema(description = "0-正常，1-禁用")
    private Integer status;

    /**
     * 是否删除(0-未删, 1-已删)
     */
    @Schema(description = "是否删除(0-未删, 1-已删)")
    @TableLogic
    private Integer isDelete;

    @Schema(hidden = true)
    private static final long serialVersionUID = 1L;
}